<template>
  <button @click="isshow = !isshow">显示/隐藏</button><br>
  <Demo v-if="isshow"></Demo>
</template>

<script>
import Demo from './components/Demo.vue';
import {ref} from 'vue'
export default {
    name: "App",
    components: { Demo },
    setup(){
      let isshow = ref(true)

      return {
        isshow
    }
  }

}
</script>

<style>
</style>
